//package com.guanzi.server.config;
//
//import com.guanzi.server.interceptor.TokenInterceptor;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//import javax.annotation.Resource;
//
///**
// * @author Xg
// * @date 2021/6/4 10:49
// */
//@Configuration
//public class WebConfig implements WebMvcConfigurer {
//    @Resource
//    private TokenInterceptor tokenInterceptor ;
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(tokenInterceptor).addPathPatterns("/**");
//    }
//}
